<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--CDN引入方式-->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>

<div id="app">
    <h1>{{msg}}</h1>
    <template v-if="sign">
        <h1>{{name}}</h1>
        <h2>{{url}}</h2>
        <h3>{{address}}</h3>
    </template>
</div>

</body>

<script type="application/javascript">
    // 创建Vue对象
    var vm = new Vue({
        el: "#app",
        data: {
            msg: "Hello Vue!",
            name: "中关村",
            url: "zpark.com",
            address: "中国北京海淀区中关村软件园",
            sign: true
        }
    });
</script>

</html>